<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/25 0025
 * Time: 11:26
 */

namespace app\model\model;


class Accesspv extends Base
{


    /**
     * 获取分页列表
     * @param bool $where
     * @param int $li
     * @return array
     * */
    public function getListPage($where=false, $li){
        return $this->where($where)->order('create_time DESC')->paginate($li);
    }
    /**
     * 添加
     * */
    public function add($data){
        return $this->data($data)->save();
    }





}